package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreRolesPK implements Serializable {
    public Long roleId;
    public Long roleVersionNum;

    public RimCoreRolesPK() {
    }

    public RimCoreRolesPK(Long roleId, Long roleVersionNum) {
        this.roleId = roleId;
        this.roleVersionNum = roleVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreRolesPK) {
            final RimCoreRolesPK otherRolesPK = (RimCoreRolesPK)other;
            final boolean areEqual = 
                (otherRolesPK.roleId.equals(roleId) && otherRolesPK.roleVersionNum.equals(roleVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
